package com.wxtech.heartbeat;

import org.apache.log4j.Logger;

/**
 * 服务器端运行的起点
 *
 */
public class App 
{
	private static Logger logger = Logger.getLogger(App.class);
    public static void main( String[] args )
    {
		try {
			logger.debug("start to init context...");
			Context.init("config.xml");
			logger.debug("context init is done.");
			logger.debug("will start the netty server...");
			Context.getServerManager().run();
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			e.printStackTrace();
		}
		
    }
}
